﻿using Ease.EaseNode.Runtime;
using UnityEditor.Experimental.GraphView;

namespace Ease.TestEaseNode.Runtime
{
    public partial class TestData
    {
#if UNITY_EDITOR
        public override string DataDes => "数据类型1";

        protected override void OnNodeInfoInit()
        {
            NodeInfo.InputConfigs.Add(new PortConfig() {id = 0, portName = "input", capacity = Port.Capacity.Multi});
            NodeInfo.OutputConfigs.Add(new PortConfig() {id = 0, portName = "output", capacity = Port.Capacity.Single});
        }

        protected override void OnNodeInfoChange()
        {
        }

        protected override IEaseNodeDataState OnCreateState()
        {
            return new TestDataState(this);
        }
#endif
    }
}